home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / drivers / goindol.c < prev    next >
C/C++ Source or Header  |  2000-05-04  |  14KB  |  420 lines

  1. /***************************************************************************
  2.   GOINDOL
  3.  
  4.   Driver provided by Jarek Parchanski (jpdev@friko6.onet.pl)
  5. ***************************************************************************/
  6.  
  7. #include "driver.h"
  8.  
  9. int  goindol_vh_start(void);
  10. void goindol_vh_stop(void);
  11. WRITE_HANDLER( goindol_fg_videoram_w );
  12. WRITE_HANDLER( goindol_bg_videoram_w );
  13. void goindol_vh_screenrefresh(struct osd_bitmap *bitmap,int full_refresh);
  14. void goindol_vh_convert_color_prom(unsigned char *palette, unsigned short *colortable,const unsigned char *color_prom);
  15.  
  16. extern unsigned char    *goindol_fg_scrollx;
  17. extern unsigned char    *goindol_fg_scrolly;
  18. extern unsigned char     *goindol_fg_videoram;
  19. extern unsigned char     *goindol_bg_videoram;
  20. extern unsigned char     *goindol_spriteram1;
  21. extern unsigned char     *goindol_spriteram2;
  22. extern size_t goindol_spriteram_size;
  23. extern size_t goindol_fg_videoram_size;
  24. extern size_t goindol_bg_videoram_size;
  25. extern int          goindol_char_bank;
  26.  
  27.  
  28. WRITE_HANDLER( goindol_bankswitch_w )
  29. {
  30.     int bankaddress;
  31.     unsigned char *RAM = memory_region(REGION_CPU1);
  32.  
  33.     bankaddress = 0x10000 + ((data & 3) * 0x4000);
  34.     cpu_setbank(1,&RAM[bankaddress]);
  35.  
  36.     goindol_char_bank = data & 0x10;
  37. }
  38.  
  39.  
  40.  
  41. static struct MemoryReadAddress readmem[] =
  42. {
  43.     { 0x0000, 0x7fff, MRA_ROM },
  44.     { 0x8000, 0xbfff, MRA_BANK1 },
  45.     { 0xc000, 0xc7ff, MRA_RAM },
  46.     { 0xc800, 0xc800, MRA_NOP },
  47.     { 0xd000, 0xefff, MRA_RAM },
  48.     { 0xf000, 0xf000, input_port_3_r },
  49.     { 0xf800, 0xf800, input_port_4_r },
  50.     { 0xc834, 0xc834, input_port_1_r },
  51.     { 0xc820, 0xc820, input_port_2_r },
  52.     { 0xc830, 0xc830, input_port_0_r },
  53.     { 0xe000, 0xefff, MRA_RAM },
  54.     { -1 }    /* end of table */
  55. };
  56.  
  57. static struct MemoryWriteAddress writemem[] =
  58. {
  59.     { 0x0000, 0xbfff, MWA_ROM },
  60.     { 0xc000, 0xc7ff, MWA_RAM },
  61.         { 0xc810, 0xc810, goindol_bankswitch_w },
  62.     { 0xc820, 0xd820, MWA_RAM, &goindol_fg_scrollx },
  63.     { 0xc830, 0xd830, MWA_RAM, &goindol_fg_scrolly },
  64.     { 0xc800, 0xc800, soundlatch_w },
  65.     { 0xd000, 0xd03f, MWA_RAM, &goindol_spriteram1, &goindol_spriteram_size },
  66.     { 0xd040, 0xd7ff, MWA_RAM },
  67.     { 0xd800, 0xdfff, goindol_bg_videoram_w, &goindol_bg_videoram, &goindol_bg_videoram_size },
  68.     { 0xe000, 0xe03f, MWA_RAM, &goindol_spriteram2 },
  69.     { 0xe040, 0xe7ff, MWA_RAM },
  70.     { 0xe800, 0xefff, goindol_fg_videoram_w, &goindol_fg_videoram, &goindol_fg_videoram_size },
  71.     { -1 }    /* end of table */
  72. };
  73.  
  74. static struct MemoryReadAddress sound_readmem[] =
  75. {
  76.     { 0x0000, 0x7fff, MRA_ROM },
  77.     { 0xc000, 0xc7ff, MRA_RAM },
  78.     { 0xd800, 0xd800, soundlatch_r },
  79.     { -1 }    /* end of table */
  80. };
  81.  
  82. static struct MemoryWriteAddress sound_writemem[] =
  83. {
  84.     { 0x0000, 0x7fff, MWA_ROM },
  85.     { 0xc000, 0xc7ff, MWA_RAM },
  86.     { 0xa000, 0xa000, YM2203_control_port_0_w },
  87.     { 0xa001, 0xa001, YM2203_write_port_0_w },
  88.     { -1 }    /* end of table */
  89. };
  90.  
  91.  
  92. INPUT_PORTS_START( goindol )
  93.  
  94.     PORT_START    /* IN0 */
  95.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY )
  96.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY )
  97.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY )
  98.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY )
  99.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
  100.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )
  101.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
  102.     PORT_BIT_IMPULSE( 0x80, IP_ACTIVE_LOW, IPT_COIN1, 1 )
  103.  
  104.     PORT_START    /* IN1 */
  105.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_COCKTAIL )
  106.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_COCKTAIL )
  107.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_COCKTAIL )
  108.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL )
  109.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
  110.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_COCKTAIL )
  111.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
  112.     PORT_BIT_IMPULSE( 0x80, IP_ACTIVE_LOW, IPT_COIN2, 1 )
  113.  
  114.     PORT_START      /* IN2 - spinner */
  115.     PORT_ANALOG( 0xff, 0x00, IPT_DIAL , 40, 10, 0, 0)
  116.  
  117.     PORT_START    /* DSW0 */
  118.     PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )
  119.     PORT_DIPSETTING(    0x03, "2" )
  120.     PORT_DIPSETTING(    0x02, "3" )
  121.     PORT_DIPSETTING(    0x01, "4" )
  122.     PORT_DIPSETTING(    0x00, "5" )
  123.     PORT_DIPNAME( 0x1c, 0x0c, DEF_STR( Difficulty ) )
  124.     PORT_DIPSETTING(    0x1c, "Easiest" )
  125.     PORT_DIPSETTING(    0x18, "Very Very Easy" )
  126.     PORT_DIPSETTING(    0x14, "Very Easy" )
  127.     PORT_DIPSETTING(    0x10, "Easy" )
  128.     PORT_DIPSETTING(    0x0c, "Normal" )
  129.     PORT_DIPSETTING(    0x08, "Difficult" )
  130.     PORT_DIPSETTING(    0x04, "Hard" )
  131.     PORT_DIPSETTING(    0x00, "Very Hard" )
  132.     PORT_DIPNAME( 0x20, 0x00, DEF_STR( Demo_Sounds ) )
  133.     PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
  134.     PORT_DIPSETTING(    0x00, DEF_STR( On ))
  135.     PORT_BITX(    0x40, 0x40, IPT_DIPSWITCH_NAME | IPF_CHEAT, "Invulnerability", IP_KEY_NONE, IP_JOY_NONE )
  136.     PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
  137.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  138.     PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
  139.  
  140.     PORT_START      /* DSW1 */
  141.     PORT_DIPNAME( 0x07, 0x07, DEF_STR( Bonus_Life ) )
  142.     PORT_DIPSETTING(    0x04, "30k and every 50k" )
  143.     PORT_DIPSETTING(    0x05, "50k and every 100k" )
  144.     PORT_DIPSETTING(    0x06, "50k and every 200k" )
  145.     PORT_DIPSETTING(    0x07, "100k and every 200k" )
  146.     PORT_DIPSETTING(    0x01, "10000 only" )
  147.     PORT_DIPSETTING(    0x02, "30000 only" )
  148.     PORT_DIPSETTING(    0x03, "50000 only" )
  149.     PORT_DIPSETTING(    0x00, "None" )
  150.     PORT_DIPNAME( 0x38, 0x00, DEF_STR( Coinage ) )
  151.     PORT_DIPSETTING(    0x28, DEF_STR( 3C_1C ) )
  152.     PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) )
  153.     PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
  154.     PORT_DIPSETTING(    0x08, DEF_STR( 1C_2C ) )
  155.     PORT_DIPSETTING(    0x10, DEF_STR( 1C_3C ) )
  156.     PORT_DIPSETTING(    0x18, DEF_STR( 1C_4C ) )
  157.     PORT_DIPSETTING(    0x30, DEF_STR( 1C_5C ) )
  158.     PORT_DIPSETTING(    0x38, DEF_STR( 1C_6C ) )
  159.     PORT_DIPNAME( 0x40, 0x40, DEF_STR( Cabinet ) )
  160.     PORT_DIPSETTING(    0x40, DEF_STR( Upright ) )
  161.     PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )
  162.     PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )
  163.     PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
  164.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  165.  
  166. INPUT_PORTS_END
  167.  
  168.  
  169. INPUT_PORTS_START( homo )
  170.  
  171.     PORT_START    /* IN0 */
  172.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY )
  173.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY )
  174.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY )
  175.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY )
  176.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
  177.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )
  178.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
  179.     PORT_BIT_IMPULSE( 0x80, IP_ACTIVE_LOW, IPT_COIN1, 1 )
  180.  
  181.     PORT_START    /* IN1 */
  182.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_COCKTAIL )
  183.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_COCKTAIL )
  184.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_COCKTAIL )
  185.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL )
  186.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
  187.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_COCKTAIL )
  188.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
  189.     PORT_BIT_IMPULSE( 0x80, IP_ACTIVE_LOW, IPT_COIN2, 1 )
  190.  
  191.     PORT_START      /* IN2 - spinner */
  192.     PORT_ANALOG( 0xff, 0x00, IPT_DIAL , 40, 10, 0, 0)
  193.  
  194.     PORT_START    /* DSW0 */
  195.     PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )
  196.     PORT_DIPSETTING(    0x03, "2" )
  197.     PORT_DIPSETTING(    0x02, "3" )
  198.     PORT_DIPSETTING(    0x01, "4" )
  199.     PORT_DIPSETTING(    0x00, "5" )
  200.     PORT_DIPNAME( 0x1c, 0x0c, DEF_STR( Difficulty ) )
  201.     PORT_DIPSETTING(    0x1c, "Easiest" )
  202.     PORT_DIPSETTING(    0x18, "Very Very Easy" )
  203.     PORT_DIPSETTING(    0x14, "Very Easy" )
  204.     PORT_DIPSETTING(    0x10, "Easy" )
  205.     PORT_DIPSETTING(    0x0c, "Normal" )
  206.     PORT_DIPSETTING(    0x08, "Difficult" )
  207.     PORT_DIPSETTING(    0x04, "Hard" )
  208.     PORT_DIPSETTING(    0x00, "Very Hard" )
  209.     PORT_DIPNAME( 0x20, 0x00, DEF_STR( Demo_Sounds ) )
  210.     PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
  211.     PORT_DIPSETTING(    0x00, DEF_STR( On ))
  212.     PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) )
  213.     PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
  214.     PORT_DIPSETTING(    0x00, DEF_STR( On ))
  215.     PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
  216.  
  217.     PORT_START      /* DSW1 */
  218.     PORT_DIPNAME( 0x07, 0x07, DEF_STR( Bonus_Life ) )
  219.     PORT_DIPSETTING(    0x04, "30k and every 50k" )
  220.     PORT_DIPSETTING(    0x05, "50k and every 100k" )
  221.     PORT_DIPSETTING(    0x06, "50k and every 200k" )
  222.     PORT_DIPSETTING(    0x07, "100k and every 200k" )
  223.     PORT_DIPSETTING(    0x01, "10000 only" )
  224.     PORT_DIPSETTING(    0x02, "30000 only" )
  225.     PORT_DIPSETTING(    0x03, "50000 only" )
  226.     PORT_DIPSETTING(    0x00, "None" )
  227.     PORT_DIPNAME( 0x38, 0x00, DEF_STR( Coinage ) )
  228.     PORT_DIPSETTING(    0x28, DEF_STR( 3C_1C ) )
  229.     PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) )
  230.     PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
  231.     PORT_DIPSETTING(    0x08, DEF_STR( 1C_2C ) )
  232.     PORT_DIPSETTING(    0x10, DEF_STR( 1C_3C ) )
  233.     PORT_DIPSETTING(    0x18, DEF_STR( 1C_4C ) )
  234.     PORT_DIPSETTING(    0x30, DEF_STR( 1C_5C ) )
  235.     PORT_DIPSETTING(    0x38, DEF_STR( 1C_6C ) )
  236.     PORT_DIPNAME( 0x40, 0x40, DEF_STR( Cabinet ) )
  237.     PORT_DIPSETTING(    0x40, DEF_STR( Upright ) )
  238.     PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )
  239.     PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )
  240.     PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
  241.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  242.  
  243. INPUT_PORTS_END
  244.  
  245. static struct GfxLayout charlayout =
  246. {
  247.     8,8,    /* 8*8 characters   */
  248.     4096,    /* 1024 characters  */
  249.     3,    /* 2 bits per pixel */
  250.     {  0, 0x8000*8, 0x10000*8 },
  251.     { 0, 1, 2, 3, 4, 5, 6, 7 },
  252.     { 0, 8, 16, 24, 32, 40, 48, 56 },
  253.     8*8    /* every char takes 8 consecutive bytes */
  254. };
  255.  
  256. static struct GfxDecodeInfo gfxdecodeinfo[] =
  257. {
  258.     { REGION_GFX1, 0, &charlayout, 0, 32 },
  259.     { REGION_GFX2, 0, &charlayout, 0, 32 },
  260.     { -1 } /* end of array */
  261. };
  262.  
  263.  
  264. static struct YM2203interface ym2203_interface =
  265. {
  266.     1,        /* 1 chip */
  267.     2000000,    /* 2 MHz (?) */
  268.     { YM2203_VOL(25,25) },
  269.     { 0 },
  270.     { 0 },
  271.     { 0 },
  272.     { 0 }
  273. };
  274.  
  275.  
  276.  
  277. static struct MachineDriver machine_driver_goindol =
  278. {
  279.     /* basic machine hardware */
  280.     {
  281.         {
  282.             CPU_Z80,
  283.             6000000,        /* 6 Mhz (?) */
  284.             readmem,writemem,0,0,
  285.             interrupt,1
  286.         },
  287.         {
  288.             CPU_Z80 | CPU_AUDIO_CPU,
  289.             4000000,    /* 4 Mhz (?) */
  290.             sound_readmem,sound_writemem,0,0,
  291.             interrupt,4
  292.         }
  293.     },
  294.     60, DEFAULT_60HZ_VBLANK_DURATION,    /* frames per second, vblank duration */
  295.     1,
  296.     0,
  297.  
  298.     /* video hardware */
  299.     32*8, 32*8, { 0*8, 32*8-1, 2*8, 30*8-1 },
  300.     gfxdecodeinfo,
  301.     256,32*8+32*8,
  302.     goindol_vh_convert_color_prom,
  303.  
  304.     VIDEO_TYPE_RASTER,
  305.     0,
  306.     goindol_vh_start,
  307.     goindol_vh_stop,
  308.     goindol_vh_screenrefresh,
  309.  
  310.     /* sound hardware */
  311.     0,0,0,0,
  312.     {
  313.         {
  314.             SOUND_YM2203,
  315.             &ym2203_interface
  316.         }
  317.     }
  318. };
  319.  
  320.  
  321.  
  322. /***************************************************************************
  323.  
  324.   Game driver(s)
  325.  
  326. ***************************************************************************/
  327.  
  328. ROM_START( goindol )
  329.     ROM_REGION( 0x20000, REGION_CPU1 )     /* 2*64k for code */
  330.     ROM_LOAD( "r1", 0x00000, 0x8000, 0x3111c61b ) /* Code 0000-7fff */
  331.     ROM_LOAD( "r2", 0x10000, 0x8000, 0x1ff6e3a2 ) /* Paged data */
  332.     ROM_LOAD( "r3", 0x18000, 0x8000, 0xe9eec24a ) /* Paged data */
  333.  
  334.     ROM_REGION( 0x10000, REGION_CPU2 )    /* 64k for the audio CPU */
  335.     ROM_LOAD( "r10", 0x00000, 0x8000, 0x72e1add1 )
  336.  
  337.     ROM_REGION( 0x18000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  338.     ROM_LOAD( "r4", 0x00000, 0x8000, 0x1ab84225 ) /* Characters */
  339.     ROM_LOAD( "r5", 0x08000, 0x8000, 0x4997d469 )
  340.     ROM_LOAD( "r6", 0x10000, 0x8000, 0x752904b0 )
  341.  
  342.     ROM_REGION( 0x18000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  343.     ROM_LOAD( "r7", 0x00000, 0x8000, 0x362f2a27 )
  344.     ROM_LOAD( "r8", 0x08000, 0x8000, 0x9fc7946e )
  345.     ROM_LOAD( "r9", 0x10000, 0x8000, 0xe6212fe4 )
  346.  
  347.     ROM_REGION( 0x0300, REGION_PROMS )
  348.     ROM_LOAD( "am27s21.pr1", 0x0000, 0x0100, 0x361f0868 )    /* palette red bits   */
  349.     ROM_LOAD( "am27s21.pr2", 0x0100, 0x0100, 0xe355da4d )    /* palette green bits */
  350.     ROM_LOAD( "am27s21.pr3", 0x0200, 0x0100, 0x8534cfb5 )    /* palette blue bits  */
  351. ROM_END
  352.  
  353. ROM_START( homo )
  354.     ROM_REGION( 0x20000, REGION_CPU1 )     /* 2*64k for code */
  355.     ROM_LOAD( "homo.01", 0x00000, 0x8000, 0x28c539ad ) /* Code 0000-7fff */
  356.     ROM_LOAD( "r2", 0x10000, 0x8000, 0x1ff6e3a2 ) /* Paged data */
  357.     ROM_LOAD( "r3", 0x18000, 0x8000, 0xe9eec24a ) /* Paged data */
  358.  
  359.     ROM_REGION( 0x10000, REGION_CPU2 )    /* 64k for the audio CPU */
  360.     ROM_LOAD( "r10", 0x00000, 0x8000, 0x72e1add1 )
  361.  
  362.     ROM_REGION( 0x18000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  363.     ROM_LOAD( "r4", 0x00000, 0x8000, 0x1ab84225 ) /* Characters */
  364.     ROM_LOAD( "r5", 0x08000, 0x8000, 0x4997d469 )
  365.     ROM_LOAD( "r6", 0x10000, 0x8000, 0x752904b0 )
  366.  
  367.     ROM_REGION( 0x18000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  368.     ROM_LOAD( "r7", 0x00000, 0x8000, 0x362f2a27 )
  369.     ROM_LOAD( "r8", 0x08000, 0x8000, 0x9fc7946e )
  370.     ROM_LOAD( "r9", 0x10000, 0x8000, 0xe6212fe4 )
  371.  
  372.     ROM_REGION( 0x0300, REGION_PROMS )
  373.     ROM_LOAD( "am27s21.pr1", 0x0000, 0x0100, 0x361f0868 )    /* palette red bits   */
  374.     ROM_LOAD( "am27s21.pr2", 0x0100, 0x0100, 0xe355da4d )    /* palette green bits */
  375.     ROM_LOAD( "am27s21.pr3", 0x0200, 0x0100, 0x8534cfb5 )    /* palette blue bits  */
  376. ROM_END
  377.  
  378.  
  379.  
  380. void init_goindol(void)
  381. {
  382.     unsigned char *rom = memory_region(REGION_CPU1);
  383.  
  384.  
  385.     /* I hope that's all patches to avoid protection */
  386.  
  387.     rom[0x04a7] = 0xc9;
  388.     rom[0x0641] = 0xc9;
  389.     rom[0x0831] = 0xc9;
  390.     rom[0x0b30] = 0x00;
  391.     rom[0x0c13] = 0xc9;
  392.     rom[0x134e] = 0xc9;
  393.     rom[0x172e] = 0xc9;
  394.     rom[0x1785] = 0xc9;
  395.     rom[0x17cc] = 0xc9;
  396.     rom[0x1aa5] = 0x7b;
  397.     rom[0x1aa6] = 0x17;
  398.     rom[0x1bee] = 0xc9;
  399.     rom[0x218c] = 0x00;
  400.     rom[0x218d] = 0x00;
  401.     rom[0x218e] = 0x00;
  402.     rom[0x333d] = 0xc9;
  403.     rom[0x3365] = 0x00;
  404. }
  405.  
  406. void init_homo(void)
  407. {
  408.     unsigned char *rom = memory_region(REGION_CPU1);
  409.  
  410.  
  411.     rom[0x218c] = 0x00;
  412.     rom[0x218d] = 0x00;
  413.     rom[0x218e] = 0x00;
  414. }
  415.  
  416.  
  417.  
  418. GAME( 1987, goindol, 0,       goindol, goindol, goindol, ROT90, "Sun a Electronics", "Goindol" )
  419. GAME( 1987, homo,    goindol, goindol, homo,    homo,    ROT90, "bootleg", "Homo" )
  420.